* {
  margin: 0;
  padding: 0;
}

/* .clearfix::after {
  content: '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
} */

/*或者使用 */
.clearfix:before,
.clearfix:after {
  content: '';
  display: table;
}
.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
}

body {
  background-color: #f3f5f7;
}

.w {
  width: 1200px;
  margin: 0 auto;
}
/* w是类名,版心直接加w即可 */

a {
  text-decoration: none;
}

li {
  list-style: none;
}
.header {
  height: 42px;
  /* background-color: pink; */
  margin: 30px auto;
  /* 这里会产生层叠 */
}

.logo {
  width: 195px;
  height: 42px;
  float: left;
  /* background-image: url(images/logo.png); */
  /* background-color: blue; */
}

.nav {
  float: left;
  margin-left: 70px;
  height: 42px;

  /* text-decoration: #00a4ff; */
  /* background-color: blueviolet; */
}
.nav ul li {
  float: left;
}
.nav ul li a {
  display: block;

  padding: 0 10px;
  font: 18px '微软雅黑';
  color: #050505;

  line-height: 42px;
  margin-right: 25px;
}
.nav ul li .last {
  /* background-color: blueviolet; */
  margin-right: 0;
}

.nav ul li a:hover {
  border-bottom: 2px solid #00a4ff;
}

.search {
  float: left;
  width: 412px;
  height: 42px;
  margin-left: 87px;

  /* background-color: blueviolet; */
}
.search input {
  float: left;
  width: 345px;
  height: 40px;
  border: 1px solid #00a4ff;
  border-right: 0;
  color: #bfbfbf;
  font-size: 14px;
  padding-left: 15px;
}
.search button {
  /* 按钮默认边框去掉 */
  border: 0;
  float: left;
  width: 50px;
  height: 42px;
  background-image: url(images/fa-search.png);
}
.user {
  float: right;
  line-height: 42px;
  margin-right: 30px;
  font-size: 14px;
  color: #666;
}

.banner {
  height: 420px;
  background-color: #1c036c;
}

.banner .w {
  height: 420px;
  background: url(images/banner2.png) no-repeat top center;
}

.banner .w .subnav {
  float: left;
  height: 420px;
  width: 190px;
  background: rgba(0, 0, 0, 0.3);
}

.subnav ul {
  padding-top: 15px;
}

.subnav ul li {
  height: 45px;
  line-height: 45px;
  padding: 0px 20px;
}

.subnav ul li a span {
  float: right;
}

/* a属于行内元素没有高度 */
.subnav ul li a {
  font-size: 14px;
  color: #ffffff;
}

.subnav ul li a:hover {
  color: #00a4ff;
}

.banner .course {
  float: right;
  height: 300px;
  width: 230px;
  margin-top: 50px;
  /* 浮动的盒子不会有外边距合并的问题 */
  /* background-color: #00a4ff; */
}

.banner .course h2 {
  height: 48px;
  font-size: 18px;
  text-align: center;
  line-height: 48px;
  /* 水平居中 垂直居中 */
  color: #ffffff;
  background-color: #9bceea;
}
.banner .course .body {
  height: 255px;
  width: 194px;
  background-color: #ffffff;
  padding: 0px 18px;
}

.banner .course .body ul {
  /* background-color: blue; */
  padding-top: 10px;
}

.banner .course .body ul li {
  height: 32px;
  width: 192px;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0px 15px 0px;
}

.banner .course .body ul li h4 {
  font-size: 16px;
  color: #4e4e4e;
}
.banner .course .body ul li p {
  font-size: 12px;
  color: #a5a5a5;
}
.banner .course .body > a {
  display: block;
  height: 40px;
  width: 200px;
  border: 1px solid #00a4ff;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #00a4ff;
  margin-top: 5px;
}

.goods {
  height: 60px;
  background-color: #ffffff;
  margin-top: 10px;
  margin-bottom: 36px;
  line-height: 60px;
  /* 行高会继承给三个孩子 */
  box-shadow: 0 2px 3px rgba(118, 118, 118, 0.2);
}

.goods h4 {
  float: left;
  color: #00a4ff;
  height: 60px;
  width: 133px;
  /* line-height: 60px; */
  text-align: center;
}

.goods ul {
  float: left;
}
.goods ul li {
  float: left;
  /* width: 123px;
  height: 17px;
  margin: 22px 0;
  padding: 0px 16px 0 16px;
  border-left: 1px solid #bfbfbf;
  text-align: center;
  font-size: 16px;
  line-height: 17px; */
}

.goods ul li a {
  color: #050505;
  border-left: 1px solid #bfbfbf;
  padding: 0px 30px;
}

.goods .mod {
  float: right;
  color: #00a4ff;
  /* line-height: 60px; */
  font-size: 14px;
  padding-right: 26px;
}

/* .box {
  height: 600px;
} */

.box .box-hd {
  height: 42px;
}

.box .box-hd h3 {
  float: left;
  color: #494949;
  font-size: 20px;
  font-weight: 400;
  margin-top: 0px;
}
.box .box-hd a {
  float: right;
  color: #a5a5a5;
  font-size: 12px;
  margin-right: 28px;
  margin-top: 10px;
}

/* .box .box-bd {
  height: 558px;
} */
.box-bd ul {
  width: 1220px;
}
.box-bd ul li {
  position: relative;
  height: 271px;
  width: 228px;
  background-color: #ffffff;
  float: left;
  margin-right: 15px;
  margin-bottom: 15px;
}

.box-bd ul li a > img {
  width: 100%;
}
.box-bd ul li em {
  position: absolute;
  top: 4px;
  right: -4px;
}

.box-bd ul li h4 {
  color: #050505;
  font-size: 14px;
  margin: 23px 20px 21px 20px;
  font-weight: 400;
}

.box-bd ul li .info {
  margin-left: 20px;
  color: #999999;
  font-size: 12px;
}

.box-bd ul li .info span {
  color: #ff7c2d;
}

.footer {
  height: 383px;
  margin-top: 42px;
  background-color: #ffffff;
  padding-top: 32px;
}

.footer .left {
  float: left;
  padding-left: 20px;
}

.footer .right {
  float: right;
  margin-right: 32px;
}

.footer .left img {
  margin-bottom: 25px;
}

.footer .left p {
  font-size: 12px;
  color: #666666;
  margin-bottom: 5px;
}

.footer .left a {
  display: block;
  height: 35px;
  width: 120px;
  margin-top: 10px;
  text-align: center;
  line-height: 35px;
  border: 1.3px solid #00a4ff;
  font-size: 16px;
  color: #00a4ff;
}

.footer .right dl {
  float: left;
  margin-left: 100px;
}
.footer .right dt {
  font-size: 16px;
  color: #333333;
}

.footer .right a {
  font-size: 12px;
  color: #333333;
}
